package com.broada.apm.ajax;

import java.util.List;
import java.util.Map;

import com.broada.apm.entity.Alarm;
import com.broada.apm.entity.AlertSeverity;
import com.broada.apm.entity.Threshold;
import com.broada.apm.util.Constants;

public class AlertResult extends Result {
	/**
	 * @Fields serialVersionUID :
	 */

	private static final long serialVersionUID = 1L;

	public void setAlerts(List<Alarm> alerts) {
		this.put(Constants.ALERTS, alerts);
	}

	public void setAlarmRank(List<AlertSeverity> serList) {
		this.put("alarmRanks", serList);
	}
	
	public void setSerRankNums(List<Map<String, Object>> list){
		this.put("serRankNums", list);
	}
	
	public void setAlertCountByWorstSeverity(int count){
		this.put("result", count);
	}
	public void setThreshold(Threshold threshold){
		this.put("result", threshold);
	}
	public void setThresholds(List<Threshold> thresholds){
		this.put("result", thresholds);
	}
}
